package com.proscenic.oauth2.server.controller;

import com.proscenic.common.web.vo.Result;
import com.proscenic.oauth2.server.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @version 1.0
 * created by chenxin on 2022/3/7 19:24
 */
@RestController
public class IndexController {
    @Autowired
    private IndexService indexService;

    /**
     * 注册客户端
     * @return
     */
    @PostMapping("registerClient")
    public Result registerClient(){
        return indexService.registerClient();
    }
}
